From: Lars Ingebrigtsen Date: Tue, 6 Jul 2021 17:13:45 +0000 (+0200) Subject: Explain what ( . c) means to the Emacs Lisp reader X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~18^2~2190 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=abe5eb9adda956ccc72af02d714025701e528b55;p=emacs.git Explain what ( . c) means to the Emacs Lisp reader * doc/lispref/objects.texi (Dotted Pair Notation): Explain what ( . c) means to the Lisp reader (bug#24875). --- diff --git a/doc/lispref/objects.texi b/doc/lispref/objects.texi index d8091f1b4b1..365d5ac8d61 100644 --- a/doc/lispref/objects.texi +++ b/doc/lispref/objects.texi @@ -1001,6 +1001,13 @@ It looks like this: @end example @end ifnottex + As a somewhat peculiar side effect of @code{(a b . c)} and +@code{(a . (b . c))} being equivalent, for consistency this means +that if you replace @code{b} here with the empty sequence, then it +follows that @code{(a . c)} and @code{(a . ( . c))} are equivalent, +too. This also means that @code{( . c)} is equivalent to @code{c}, +but this is seldom used. + @node Association List Type @subsubsection Association List Type